<template>
  	<div id="app">
	    <router-view></router-view>
	     <div class="customModal" id="cm">
	        <div :class="[toast.sign?'success':'fail','cm-body']">
	            <p>
	                <i v-if="toast.sign" class="fa fa-check-circle-o"></i>
	                <i v-else class="fa fa-exclamation-circle"></i>
	                <span>{{toast.msg}}</span>
	            </p>
	        </div>
	    </div>
	</div>
</template>

<script>
export default {
  name: 'app',
  computed:{
  	toast(){
  		return this.$store.state.toast
  	}
  },
  watch:{
  	
  },
  mounted(){
  	console.log( this.$refs.toast );
  }
}
</script>

<style>
#app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}
</style>
